package cn.edu.zafu.bigdata.yt.yichangchuli;

import java.util.Scanner;

public class ScoreValidator_yt {
    public static void checkScore(int score) throws InvalidScoreException_yt {
        if (score < 0 || score > 100) {
            throw new InvalidScoreException_yt("Score must be between 0 and 100.");
        }
        System.out.println("Score is valid: " + score);
    }
}